public class JavaStringLength {
    public static void main(String args[]) {
        String site = "www.runoob.com";
        int len = site.length();
        System.out.println("菜鸟教程网址长度：" + len);
    }
}